#ifndef __SENSOR_HTU21D_H_
#define __SENSOR_HTU21D_H_

#define HTU21D_I2C_BUS_NAME           "i2c1"                    // I2C设备名称

#define HTU21D_ADDR                   0x40                      // HTU21D地址
#define HTU21D_RESET                  0xFE                      // HTU21D复位寄存器地址
#define HTU21D_READ_TEMP              0xF3                      // HTU21D温度寄存器地址
#define HTU21D_READ_HUMI              0xF5                      // HTU21D湿度寄存器地址

int htu21d_init(void);
float hut21d_read_temp(void);
float hut21d_read_humi(void);

#endif // __SENSOR_HTU21D_H_
